package ooboo;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class ImagePanel extends JPanel {

	private BufferedImage image = null;
	
	public ImagePanel (BufferedImage picture) {
		image = picture;
	}
	
	public void paintComponent(Graphics g) {
        g.drawImage(image, 0, 0, null);

    }
	
}
